package com.qjl.shopping.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

/**
 * @Author liguanghui
 * @Date 2023/5/3
 */
@Data
@TableName("item")
public class Item {
    @TableId(value = "item_id", type = IdType.AUTO)
    private int id;
    @TableField("item_name")
    private String name;
    @TableField("item_img")
    private String img;
    @TableField("item_price")
    private double price;
    @TableField("item_disc")
    private String disc;
    @TableField("item_status")
    private int status;
    @TableField("item_gameid")
    private int gameId;
    @TableField("item_type")
    private int type;


    @TableField(exist = false)
    private Game game;
}

